package model

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ AwRoleMenuListsModel = (*customAwRoleMenuListsModel)(nil)

type (
	// AwRoleMenuListsModel is an interface to be customized, add more methods here,
	// and implement the added methods in customAwRoleMenuListsModel.
	AwRoleMenuListsModel interface {
		awRoleMenuListsModel
		withSession(session sqlx.Session) AwRoleMenuListsModel
	}

	customAwRoleMenuListsModel struct {
		*defaultAwRoleMenuListsModel
	}
)

// NewAwRoleMenuListsModel returns a model for the database table.
func NewAwRoleMenuListsModel(conn sqlx.SqlConn) AwRoleMenuListsModel {
	return &customAwRoleMenuListsModel{
		defaultAwRoleMenuListsModel: newAwRoleMenuListsModel(conn),
	}
}

func (m *customAwRoleMenuListsModel) withSession(session sqlx.Session) AwRoleMenuListsModel {
	return NewAwRoleMenuListsModel(sqlx.NewSqlConnFromSession(session))
}
